package whf.framework.exception.handlers;

import java.util.Map;

import whf.framework.log.Log;
import whf.framework.log.LogFactory;

/**
 * 打印日志
 * @author wanghaifeng
 * @create Oct 19, 2006 3:27:33 PM
 * 
 */
public class OccurThenLog implements ExceptionHandler {
	
	private static Log log = LogFactory.getLog(OccurThenLog.class);
	
	/* (non-Javadoc)
	 * @see whf.framework.exception.handlers.ExceptionHandler#handle(T, java.util.Map)
	 */
	public void handle(Throwable t, Map parameters) throws ExceptionHandleEndException {
		log.error(t.getMessage());
	}

}
